package com.huayal.mall.search.vo;

import com.huayal.common.vo.es.SkuESModel;
import lombok.Data;

import java.util.List;

@Data
public class SearchResult {

    private List<SkuESModel> products;//查询到满足条件的商品信息

    //分页信息
    private Integer PageNum;//当前页
    private Integer total;//总的记录数
    private Integer totalPages;//总的页数

    //当前查询的商品涉及到的所有品牌
    private List<BrandVo> brands;

    //..涉及到的类别
    private List<CatelogVo> catelogs;

    //当前商品所涉及到的属性
    private List<AttrVo> attrs;

    @Data
    public static class BrandVo{
        private Long brandId;
        private String brandName;
        private String brandImg;
    }

    @Data
    public static class CatelogVo{
        private Long catelogId;
        private String catelogName;
    }

    @Data
    public static  class AttrVo{
        private Long attrId;
        private String attrName;
        private List<String> attrValues;
    }
}
